package com.example.bootdemo5.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

//   dept_name  deptName  dept_email   deptEmail
//{id；1,name:'张三' }

@Data
@TableName("employee")
public class Employee {
    @TableId(value="id",type= IdType.AUTO)
    private Long id;
    @TableField("name")
    private String name;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("email")
    private String email;
    @TableField("dept_id")
    private String deptId;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @TableField(exist = false)
    Department  department;


}
